import 'dart:convert';

Passwords passwordsFromJson(String str) => Passwords.fromJson(json.decode(str));

String passwordsToJson(Passwords data) => json.encode(data.toJson());

class Passwords {
  Passwords({
    required this.newPassword,
    required this.password,
  });

  String newPassword;
  String password;

  factory Passwords.fromJson(Map<String, dynamic> json) => Passwords(
        newPassword: json["newPassword"],
        password: json["password"],
      );

  Map<String, dynamic> toJson() => {
        "newPassword": newPassword,
        "password": password,
      };
}
